package cn.yunyichina.provider.iface.entity;

import java.io.Serializable;


public class HospitalCodeAndAppVo implements Serializable {
	
	private static final long serialVersionUID = 6748640445004948677L;

	
	protected String appId;

	protected String appName;

	protected String appCode;
	
	protected String privateKey;

	
	protected String hospitalId;
	protected String hospitalName;
	protected String hospitalCode;

	/**
	 * 微信：商户号ID， 支付宝：合作者ID
	 */
	protected String mchId;

	/**
	 * 商户secret
	 */
	protected String secret;

	/**
	 * 子商户mchId
	 */
	protected String subMchId;

	/**
	 * 是否有子商户   1 有   0 没有
	 */
	protected Integer isSubPay;

	/**
	 * 商户key
	 */
	protected String paykey;

	/**
	 * openId
	 */
	protected String mchOpenId;

	/**
	 * 支付配置ID 用户查询支付或者退款密钥
	 */
	protected String paySettingId;

	/**
	 * 微信退款的密钥文件路径
	 */
	protected String refundFilePath;

	/**
	 * 微信退款的密钥文件名
	 */
	protected String refundFileName;

	/**
	 * 支付宝卖家账号
	 */
	protected String mchAccount;

	/**
	 * 支付宝支付私钥
	 */
	protected String aliPrivateKey;

	/**
	 * 支付宝支付公钥，验证参数使用
	 */
	protected String aliPublicKey;
	
	protected String parentAppId;

	
	protected String parentSecret;

	public HospitalCodeAndAppVo() {
		super();
	}

	public HospitalCodeAndAppVo(String appId, String appCode, String hospitalId, String hospitalCode) {
		super();
		this.appId = appId;
		this.appCode = appCode;
		this.hospitalId = hospitalId;
		this.hospitalCode = hospitalCode;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppCode() {
		return appCode;
	}

	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

	public String getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(String hospitalId) {
		this.hospitalId = hospitalId;
	}

	public String getHospitalCode() {
		return hospitalCode;
	}

	public void setHospitalCode(String hospitalCode) {
		this.hospitalCode = hospitalCode;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getHospitalName() {
		return hospitalName;
	}

	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getSubMchId() {
		return subMchId;
	}

	public void setSubMchId(String subMchId) {
		this.subMchId = subMchId;
	}

	public Integer getIsSubPay() {
		return isSubPay;
	}

	public void setIsSubPay(Integer isSubPay) {
		this.isSubPay = isSubPay;
	}

	public String getPaykey() {
		return paykey;
	}

	public void setPaykey(String paykey) {
		this.paykey = paykey;
	}

	public String getMchOpenId() {
		return mchOpenId;
	}

	public void setMchOpenId(String mchOpenId) {
		this.mchOpenId = mchOpenId;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}

	public String getPaySettingId() {
		return paySettingId;
	}

	public void setPaySettingId(String paySettingId) {
		this.paySettingId = paySettingId;
	}

	/*public String getPublicKey() {
		return publicKey;
	}

	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}*/

	public String getMchAccount() {
		return mchAccount;
	}

	public void setMchAccount(String mchAccount) {
		this.mchAccount = mchAccount;
	}

	public String getAliPrivateKey() {
		return aliPrivateKey;
	}

	public void setAliPrivateKey(String aliPrivateKey) {
		this.aliPrivateKey = aliPrivateKey;
	}

	public String getAliPublicKey() {
		return aliPublicKey;
	}

	public void setAliPublicKey(String aliPublicKey) {
		this.aliPublicKey = aliPublicKey;
	}

	public String getRefundFilePath() {
		return refundFilePath;
	}

	public void setRefundFilePath(String refundFilePath) {
		this.refundFilePath = refundFilePath;
	}

	public String getParentAppId() {
		return parentAppId;
	}

	public void setParentAppId(String parentAppId) {
		this.parentAppId = parentAppId;
	}

	public String getParentSecret() {
		return parentSecret;
	}

	public void setParentSecret(String parentSecret) {
		this.parentSecret = parentSecret;
	}
	public String getRefundFileName() {
		if (refundFilePath != null && refundFilePath.trim().length() > 0) {
			int index = refundFilePath.lastIndexOf(java.io.File.separatorChar);
			if (index > -1) {
				refundFileName = refundFilePath.substring(index + 1);
			} else {
				if (java.io.File.separatorChar == '\\') {
					index = refundFilePath.lastIndexOf('/');
				} else {
					index = refundFilePath.lastIndexOf('\\');
				}
				if (index > -1) {
					refundFileName = refundFilePath.substring(index + 1);
				} else {
					refundFileName = refundFilePath;
				}
			}
		}
		return refundFileName;
	}

	public void setRefundFileName(String refundFileName) {
		this.refundFileName = refundFileName;
	}
}
